<template>
  <!-- 气瓶回收管理 -->
  <div class="app-page">
    <el-tabs
      ref="cylinderRecoveryManageTab"
      v-model="activeTabName"
      type="card"
    >
      <el-tab-pane v-if="$hasTabPermission(30801)" label="气瓶回收管理" name="cylinderRecovery">
        <cylinderRecovery v-if="activeTabName === 'cylinderRecovery'" ref="cylinderRecovery" />
      </el-tab-pane>
      <el-tab-pane v-if="$hasTabPermission(30802)" label="气瓶回收设置" name="recoverySetting">
        <recoverySetting v-if="activeTabName === 'recoverySetting'" ref="recoverySetting" />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

  <script>
  import cylinderRecovery from './cylinderRecovery'
  import recoverySetting from './recoverySetting'
  export default {
    name: 'cylinderRecoveryManage',
    components: {
      cylinderRecovery, recoverySetting
    },
    data() {
      return {
        activeTabName: 'cylinderRecovery'
      }
    },
    mounted() {
      this.activeTabName = this.$refs.cylinderRecoveryManageTab.panes[0].name
    }
  }
  </script>

  <style lang="scss" scoped>
  .app-page {
    padding: 0;
    margin: 0;
    /deep/.el-tabs__header {
      margin: 0 0 10px;
    }
  }
  </style>
